/**
 * 
 */
package name.yzhu.index;

import java.io.IOException;

import name.yzhu.common.yaml.YamlItem;

/**
 * @author yhzhu
 *
 */
public interface IndexerInterface {
	/**
	 * initialize indexer 
	 */
    public void open() throws IOException;
    /**
     * close and release resource
     */
    public void close() throws IOException;
    /**
     * add a yaml document to index
     * @param doc
     */
    public void addDocument(YamlItem doc) ;
}
